package gao.com.http;

import java.util.HashMap;

/**
 * Created by admin on 2015/12/25.
 */
public class Request {

    public enum RequestMethod {GET, POST , PUT , DELETE};

    public String url;
    public String content;
    public HashMap<String, String> headers;

    public RequestMethod method;

    public Request(String url , RequestMethod method){
        this.url = url;
        this.method = method;
    }

    public Request(String url){
        this.url = url;
        this.method = RequestMethod.GET;
    }
}
